/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>0280</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S21454 (C-0-T14079-S21454-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#get_0280()
 * @model extendedMetaData="name='_0280'"
 * @generated
 */
public enum _0280 implements Enumerator {
	/**
	 * The '<em><b>0280</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0280_VALUE
	 * @generated
	 * @ordered
	 */
	_0280(0, "_0280", "0280"),

	/**
	 * The '<em><b>0278</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0278_VALUE
	 * @generated
	 * @ordered
	 */
	_0278(1, "_0278", "0278"),

	/**
	 * The '<em><b>0240</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0240_VALUE
	 * @generated
	 * @ordered
	 */
	_0240(2, "_0240", "0240"),

	/**
	 * The '<em><b>0241</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0241_VALUE
	 * @generated
	 * @ordered
	 */
	_0241(3, "_0241", "0241"),

	/**
	 * The '<em><b>0242</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0242_VALUE
	 * @generated
	 * @ordered
	 */
	_0242(4, "_0242", "0242"),

	/**
	 * The '<em><b>0279</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0279_VALUE
	 * @generated
	 * @ordered
	 */
	_0279(5, "_0279", "0279"),

	/**
	 * The '<em><b>0275</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0275_VALUE
	 * @generated
	 * @ordered
	 */
	_0275(6, "_0275", "0275"),

	/**
	 * The '<em><b>0272</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0272_VALUE
	 * @generated
	 * @ordered
	 */
	_0272(7, "_0272", "0272"),

	/**
	 * The '<em><b>027 5a</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_027_5A_VALUE
	 * @generated
	 * @ordered
	 */
	_027_5A(8, "_0275a", "0275a"),

	/**
	 * The '<em><b>0277</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0277_VALUE
	 * @generated
	 * @ordered
	 */
	_0277(9, "_0277", "0277"),

	/**
	 * The '<em><b>0276</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0276_VALUE
	 * @generated
	 * @ordered
	 */
	_0276(10, "_0276", "0276"),

	/**
	 * The '<em><b>0273</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0273_VALUE
	 * @generated
	 * @ordered
	 */
	_0273(11, "_0273", "0273"),

	/**
	 * The '<em><b>0274</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0274_VALUE
	 * @generated
	 * @ordered
	 */
	_0274(12, "_0274", "0274");

	/**
	 * The '<em><b>0280</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0280</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0280
	 * @model literal="0280"
	 * @generated
	 * @ordered
	 */
	public static final int _0280_VALUE = 0;

	/**
	 * The '<em><b>0278</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0278</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0278
	 * @model literal="0278"
	 * @generated
	 * @ordered
	 */
	public static final int _0278_VALUE = 1;

	/**
	 * The '<em><b>0240</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0240</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0240
	 * @model literal="0240"
	 * @generated
	 * @ordered
	 */
	public static final int _0240_VALUE = 2;

	/**
	 * The '<em><b>0241</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0241</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0241
	 * @model literal="0241"
	 * @generated
	 * @ordered
	 */
	public static final int _0241_VALUE = 3;

	/**
	 * The '<em><b>0242</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0242</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0242
	 * @model literal="0242"
	 * @generated
	 * @ordered
	 */
	public static final int _0242_VALUE = 4;

	/**
	 * The '<em><b>0279</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0279</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0279
	 * @model literal="0279"
	 * @generated
	 * @ordered
	 */
	public static final int _0279_VALUE = 5;

	/**
	 * The '<em><b>0275</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0275</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0275
	 * @model literal="0275"
	 * @generated
	 * @ordered
	 */
	public static final int _0275_VALUE = 6;

	/**
	 * The '<em><b>0272</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0272</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0272
	 * @model literal="0272"
	 * @generated
	 * @ordered
	 */
	public static final int _0272_VALUE = 7;

	/**
	 * The '<em><b>027 5a</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>027 5a</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_027_5A
	 * @model name="_0275a" literal="0275a"
	 * @generated
	 * @ordered
	 */
	public static final int _027_5A_VALUE = 8;

	/**
	 * The '<em><b>0277</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0277</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0277
	 * @model literal="0277"
	 * @generated
	 * @ordered
	 */
	public static final int _0277_VALUE = 9;

	/**
	 * The '<em><b>0276</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0276</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0276
	 * @model literal="0276"
	 * @generated
	 * @ordered
	 */
	public static final int _0276_VALUE = 10;

	/**
	 * The '<em><b>0273</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0273</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0273
	 * @model literal="0273"
	 * @generated
	 * @ordered
	 */
	public static final int _0273_VALUE = 11;

	/**
	 * The '<em><b>0274</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0274</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0274
	 * @model literal="0274"
	 * @generated
	 * @ordered
	 */
	public static final int _0274_VALUE = 12;

	/**
	 * An array of all the '<em><b>0280</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final _0280[] VALUES_ARRAY =
		new _0280[] {
			_0280,
			_0278,
			_0240,
			_0241,
			_0242,
			_0279,
			_0275,
			_0272,
			_027_5A,
			_0277,
			_0276,
			_0273,
			_0274,
		};

	/**
	 * A public read-only list of all the '<em><b>0280</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<_0280> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>0280</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static _0280 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			_0280 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>0280</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static _0280 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			_0280 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>0280</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static _0280 get(int value) {
		switch (value) {
			case _0280_VALUE: return _0280;
			case _0278_VALUE: return _0278;
			case _0240_VALUE: return _0240;
			case _0241_VALUE: return _0241;
			case _0242_VALUE: return _0242;
			case _0279_VALUE: return _0279;
			case _0275_VALUE: return _0275;
			case _0272_VALUE: return _0272;
			case _027_5A_VALUE: return _027_5A;
			case _0277_VALUE: return _0277;
			case _0276_VALUE: return _0276;
			case _0273_VALUE: return _0273;
			case _0274_VALUE: return _0274;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private _0280(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //_0280
